package com.inspur.dgov.vlbod.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.inspur.dgov.vlbod.entity.LiveBroadcast;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inspur.dgov.vlbod.vo.LiveBroadcastVO;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chiyupei
 * @since 2023-05-28
 */
public interface LiveBroadcastMapper extends BaseMapper<LiveBroadcast> {

    /**
     * 获取我的直播列表
     * @param page
     * @param params
     * @return
     */
    Page<LiveBroadcastVO> queryMyList(Page page, @Param("query") Map params);

    /**
     * 获取我的收藏列表
     * @param page
     * @param params
     * @return
     */
    Page<LiveBroadcastVO> queryCollectList(Page page, @Param("query") Map params);

    /**
     * 获取直播列表
     * @param page
     * @param params
     * @return
     */
    Page<LiveBroadcastVO> queryList(Page page, @Param("query") Map params);
}
